Repository navigation
trystero: AGENTS.md sends the reader to the superproject's coding guidelines - #2
Merged
Merged
Conversation
added 4 commits
October 26, 2026 11:41
…delines The superproject's rules and design decisions moved to CODING-GUIDELINES.md, whose chapter 15 gives this library's decisions with their reasons; its AGENTS.md says how to work in the tree. Both are read before this file.
…pp's are Analysed against libstdc++, as the CI's Linux lint does, clang-tidy's performance-unnecessary-value-param reports pc and channel of share_or_adopt and app of room_impl::make as used only as const references, although each is moved into the object std::allocate_shared builds; against libc++ it reports nothing. They are sinks, exempt with that reason as app::make's parameters already are.
On MSVC 14.3 and 14.5 a room counts 6 global allocations where 2 are expected, and two rooms of an app 12 where 4 are, which the test reported as numbers alone. It now keeps the size of each global allocation it counts, without allocating, and writes them to the standard error with MSVC's iterator debugging level when a count is not what it expects, so that a failure says what was allocated.
…keep to their resources MSVC counted, for each room, a global allocation of 16 bytes and one of 56: its std::list allocates a sentinel node when constructed, and in a debug build every container allocates an iterator proxy, and the memory backend's data channel queued its frames in a std::list of std::allocator. The queue now takes its nodes from the channel's resource, through an allocator that leaves each frame in the resource it was made in. The second test also checked its resources while its moved-from configurations and its payloads were alive, of which MSVC's debug containers still hold proxies: they are now destroyed before the check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the organization's proposal
coding-guidelines(webcpporg/proposals,organization/openspec/changes/coding-guidelines), accepted on 2026-10-26: the superproject's rules and design decisions now live inCODING-GUIDELINES.md, whose chapter 15 gives this library's decisions with their reasons, and itsAGENTS.mdsays how to work in the tree. This library'sAGENTS.mdnow sends the reader to both.It also fixes what the CI found, which predates this change (the shared connection was merged without a CI run):
performance-unnecessary-value-paramreportspcandchannelofapp_impl::share_or_adoptandappofroom_impl::makeas used only as const references, although each is moved into whatstd::allocate_sharedbuilds. They are sinks, exempt with that reason asapp::make's already are. Reproduced locally with libstdc++: 3 findings before, none after.trystero/allocationon MSVC 14.3 and 14.5. A room counted a 16-byte and a 56-byte global allocation: MSVC'sstd::listallocates its sentinel when constructed, and in a debug build every container its iterator proxy, and the test backend's data channel queued frames in astd::listofstd::allocator. The queue now takes its nodes from the channel's resource, through an allocator that leaves each frame in its own; the second test checks its resources once its own objects are gone. The test now writes the size of each global allocation when a count is not what it expects, which is how the cause was found.trystero/native_roomfailed once on MSVC 14.5 (a real connection not seen within 15 s), passed on a rerun of that lane and in every other run, and passes 30 of 30 times locally: recorded for an investigation of its own.🤖 Generated with Claude Code